package com.zhang.learn.spring.springplugin;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

/**
 * @author zhanghaolian
 * @date 2021/6/7 0:20
 */
public class MobileTest {
    @Test
    public void testWithPlugin() {
        AnnotationConfigApplicationContext context=
                new AnnotationConfigApplicationContext("com.zhang.learn.spring.springplugin");

        CustomerService customerService=context.getBean(CustomerService.class);
        MobileCustomer mobileCustomer=new MobileCustomer("13567662664");
        mobileCustomer.setOld(true);
        customerService.increments(mobileCustomer,120);
    }


}
